package edu.zut.cs.software.estateagent.visitor.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import edu.zut.cs.software.base.service.impl.GenericManagerImpl;
import edu.zut.cs.software.estateagent.visitor.dao.VisitorDao;
import edu.zut.cs.software.estateagent.visitor.domain.Visitor;
import edu.zut.cs.software.estateagent.visitor.service.VisitorManager;

@Component
@Transactional
public class VisitorManagerImpl extends GenericManagerImpl<Visitor, Long> implements VisitorManager {

	VisitorDao visitorDao;

    @Override
    public Visitor findbyUsername(String username) {
        // TODO Auto-generated method stub
        return null;
    }

    @Autowired
    public void setVisitorDao(VisitorDao visitorDao) {
        this.visitorDao = visitorDao;
        this.dao = this.visitorDao;
    }

}